import store from '@/store'
import storage from '@/utils/storage'

export default function Initializer() {
 // 如果登录信息未失效，用户认证token
 store.commit('SET_TOKEN', storage.get('AccessToken'))
 // 当前用户ID
 store.commit('SET_USER_ID', storage.get('userInfo'))
 //当前登录状态
 store.commit('SET_ISLOGIN', storage.get('isLogin'))
}
